<?php echo '<?xml version="1.0" encoding="utf-8"?>' ; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en" xml‎ns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <?php Yii::app()->getClientScript()->registerCoreScript('jquery'); ?>

</head>

<body>

<div class="container" id="page">

	<div id="header" dir="rtl">
            <div id="logo">
                <span>
                    <a  href="<?php echo Yii::app()->createUrl('/site/index');?>"></a>
                   
                </span>
            </div>
        <?php if(!Yii::app()->user->isGuest) { ?>
            <div id="centerlogo">
                <?php  echo "<img src=".Yii::app()->request->baseUrl."/css/images/header_center_".Yii::app()->user->center.".gif />"; ?>
            </div>
            <div id="userbox">
                <ul>
                    <li><?php echo Yii::app()->user->namef.' '.Yii::app()->user->namel; ?></li>
                    <li><a href="<?php echo Yii::app()->createUrl('/site/panel');?>">החשבון שלי</a></li>
                    <li><a href="<?php echo Yii::app()->createUrl('/grbac/authenticate/logout');?>">התנתק</a></li>
                    
                </ul>
            </div>
        <?php }
            else
                echo "<a href=".Yii::app()->createUrl('/grbac/authenticate/login')."><div id='login'></div></a>";
        ?>
            <div id="about">
                <span>
                    <a  href="<?php echo Yii::app()->createUrl('/site/about');?>"></a>
                </span>
            </div>
	</div><!-- header -->
        <div id="breadcrums" dir="rtl">
            <?php $this->widget('zii.widgets.CBreadcrumbs', array(
		'links'=>$this->breadcrumbs,
            )); ?><!-- breadcrumbs -->
        </div>
       

	<div id="content">
                <div id="message" dir="rtl"></div>
		<?php echo $content; ?>
	</div><!-- content -->
        
        <div id="footer">
        <div style="float:right;"><a href="http://code.google.com/p/ayalim/issues/list" target="_blank">דווח על תקלה</a></div>
נבנה ועוצב ע"י <a  href="http://www.loo.co.il">אלי טוינה</a>
		<?php echo Yii::powered(); ?>
	</div><!-- footer -->
</div><!-- page -->


</body>
</html>